package test02;

public class Calculate2 extends Calculate1 {
    public Calculate2() {
    }

    public double multiply(double num1, double num2) {
        return num1 * num2;
    }

    public double divide(double num1, double num2) {
        try {
            return num1 / num2;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
